package com.junqi.media.service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface HlsService {

//    /**
//     * 关闭hls切片
//     *
//     * @param cameraDto
//     */
//    void end(String streamKey);

    /**
     * hls播放接口 获取ts文件
     * @throws IOException
     */
    void getTsFile(HttpServletResponse response, String roomId, String tsName) throws IOException;

    /**
     * hls播放接口 获取m3u8文件
     * @throws IOException
     */
    void video(String roomId, HttpServletResponse response) throws IOException;

//    void start(String streamKey);
}
